<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<%@ include file="/page/resform.jsp" %>
<script type="text/javascript">
	$(function() {
		$("#pushForm").validate();
	});
</script>
</head>
<body>
	<div class="body-box">
		<div class="rhead">
			<div class="rpos">当前位置:-设备绑定 ${id eq null?'新增':'修改' }</div>
			<div class="clear"></div>
		</div>
		
		<form method="post"  id="pushForm" action="${ctx }/device/save">
			<input type="hidden" name="id" value="${id}"/>
			<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
				<tr>
					<td width="12%" class="pn-flabel"><span class="pn-frequired">*</span>用户名</td>
					<td colspan="1" width="38%" class="pn-fcontent">
						<input type="text"  name="username" value="${entity.username }" maxlength="300"  validate="{required:true,maxlength:30}"/>
					</td>
					<td width="12%" class="pn-flabel">应用名称</td>
					<td colspan="1" width="38%" class="pn-fcontent">
						<input type="text"  name="applyname" value="${entity.applyname }" maxlength="30"  validate="{maxlength:30}"/>
					</td>
				</tr>
				<tr>
					<td width="12%" class="pn-flabel">客户端名称</td>
					<td colspan="1" width="38%" class="pn-fcontent">
						<input type="text"  name="clintname" value="${entity.clintname }" maxlength="50"  validate="{maxlength:50}"/>
					</td>
					<td width="12%" class="pn-flabel"><span class="pn-frequired">*</span>设备标示</td>
					<td colspan="1" width="38%" class="pn-fcontent">
						<input type="text"  name="deviceid" value="${entity.deviceid }" maxlength="50"  validate="{required:true,maxlength:50}"/>
					</td>
				</tr>
				<tr>
					<td colspan="4" class="pn-fbutton">
						<input id="dictsub" type="button" onclick="submit();" value="提交" class="ps-btn"/> &nbsp; 
						<input type="reset" value="重置" class="ps-btn" />&nbsp; 
						<input type="button" value="返回" class="ps-btn" onclick="history.back();" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>